import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import "./styles/index.scss";
import { Toast,Dialog  } from 'vant';
import "vant/es/toast/style";
import "vant/es/dialog/style";
import { Loading } from 'vant';


// 只在开发环境中加载mock数据
if (import.meta.env.VITE_APP_ENV === "development") {
  await import("@/mock");
}
const app = createApp(App);

app.use(Loading);
app.use(router);
app.use(Toast);
app.use(Dialog);

app.mount("#app");

